package com.foreknow.demo7;

public class TestStudent {
    public static void main(String[] args) {
        Student s = new Student();
        //s.sid = 100;
        s.setSid(100); //通过set方法将对象中的属性设置一个值
        //s.name = "fender";
        s.setName("fender");
        //s.age = 30;
        s.setAge(30);
        System.out.println(s.getName());
    }
}
